package com.xiaohua.xiaohuamall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xiaohua.common.utils.PageUtils;
import com.xiaohua.xiaohuamall.product.entity.SpuInfoDescEntity;
import com.xiaohua.xiaohuamall.product.entity.SpuInfoEntity;
import com.xiaohua.xiaohuamall.product.vo.SpuSaveVo;

import java.util.Map;

/**
 * spu信息
 *
 * @author xiaoli
 * @email m78lixingyun@gmail.com
 * @date 2023-10-20 00:27:13
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveSpuInfo(SpuSaveVo vo);

    void saveBaseSpuInfo(SpuInfoEntity infoEntity);

    PageUtils queryPageByCondition(Map<String, Object> params);

    /**
     * 商品上架
     * @param spuId
     */
    void up(Long spuId);
}

